package cn.com.doone.common.uc.domain.rs;

import java.util.List;
import java.util.Map;

import cn.com.doone.common.uc.service.dto.UserGroup;
import cn.com.doone.common.uc.service.dto.UserInfo;

public interface IRegisterLdapRepository {
	
	/**
	 * 添加租户
	 * 
	 * @param userGroup
	 * @return
	 */
	public String addTenant(UserGroup userGroup) throws Exception;
	
	/**
	 * 更新租户信息
	 * 
	 * @param userGroup
	 * @return
	 * @throws Exception
	 */
	public void updateTenant(UserGroup userGroup) throws Exception;

	/**
	 * 添加用户
	 * 
	 * @param userInfo
	 */
	public void addUser(String tenantFullName, String tenantCode, UserInfo userInfo) throws Exception;
	
	/**
	 * 逻辑删除用户
	 * 
	 * @param userAccount
	 * @param tenantFullName
	 */
	public void removeUser(String userAccount, String tenantFullName) throws Exception;
	
	/**
	 * 重置密码
	 * 
	 * @param userAccount
	 * @param tenantFullName
	 */
	public void resetPassword(String userAccount, String tenantFullName,String password);
	
	/**
	 * 根据租户码查租户名
	 * 
	 * @param tenantCode
	 * @return
	 */
	public String findTenantFullNameByTenantCode(String tenantCode) throws Exception;
	
	/**
	 * 删除节点
	 * 
	 * @param nodename
	 */
	public void removeNode(String nodename);
	
	/**
	 * 同步用户
	 * 
	 * @param userMapList
	 */
	public void sysnUser(List<Map<String, Object>> userMapList) throws Exception;
	
}
